package com.huangpuweb.api.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class NanDongDjServiceRowMapper implements RowMapper<NanDongDjService> {
    @Override
    public NanDongDjService mapRow(ResultSet resultSet, int i) throws SQLException {
        NanDongDjService nd = new NanDongDjService();
        nd.setId(resultSet.getString("id"));
        nd.setName(resultSet.getString("name"));
        nd.setType(resultSet.getString("type"));
        nd.setAdress(resultSet.getString("adress"));
        nd.setContacts(resultSet.getString("contacts"));
        nd.setPhone(resultSet.getString("phone"));
        nd.setLng(resultSet.getString("lng"));
        nd.setLat(resultSet.getString("lat"));
        return nd;
    }
}
